home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / mgraph / mgraph.h < prev    next >
Text File  |  1994-03-22  |  920b  |  41 lines

  1. /* Copyright 1994 Ralph Gonzalez */
  2.  
  3. /*
  4. *    FILE:        mgraph.h
  5. *    AUTHOR:        R. Gonzalez
  6. *    CREATED:    March 19, 1990
  7. *    MODIFIED:    March 15, 1994
  8. *                Adapted macgraph.h to agree with xgraph version
  9. *
  10. *    declarations for mgraph.c
  11. */
  12.  
  13. # include    "boolean.h"
  14.  
  15. # define    BLACK        0
  16. # define    WHITE        1
  17. # define    RED            2
  18. # define    YELLOW        3
  19. # define    GREEN        4
  20. # define    BLUE        5
  21. # define    CYAN        6
  22. # define    MAGENTA        7
  23. typedef int    color;
  24.  
  25. void    init_graphics(void);
  26. double    get_screen_aspect_ratio(void);
  27. void    set_graphics_coords(double,double,double,double);
  28. void    pen_color(color);
  29. void    background_color(color);
  30. void    graphics_to_front(void); 
  31. void    erase_graphics(void);
  32. void    draw_line(double,double,double,double);    
  33. void    move_to(double,double);
  34. void    draw_to(double,double);
  35. void    draw_circle(double,double,double);    
  36. void    fill_circle(double,double,double);    
  37. boolean    mouse_button_is_down(void);
  38. void    wait(void);
  39. void    get_mouse_location(double*,double*);
  40.  
  41.